//---------------------------------------------------------------------------


#pragma hdrstop

#include "TEnumMember.h"

//---------------------------------------------------------------------------

#pragma package(smart_init)
															 /*
TEnumMember __fastcall TEnumMemberList::Which(const AnsiString Name)
{
   for (int i = 0; i < size(); i++) {
      if (at(i).ChineseName == Name || at(i).EnglishName == Name) {
         return at(i);
      }
   }
   return at(0);
}

//---------------------------------------------------------------------------
TEnumMember __fastcall TEnumMemberList::Which(const int Index)
{
   for (int i = 0; i < size(); i++) {
      if (at(i).Index == Index) {
         return at(i);
      }
   }
   return at(0);
}

//---------------------------------------------------------------------------
int __fastcall TEnumMemberList::Index(const AnsiString Name)
{
   for (int i = 0; i < size(); i++) {
      if (at(i).ChineseName == Name || at(i).EnglishName == Name) {
         return at(i).Index;
      }
   }
   return at(0).Index;
}

AnsiString __fastcall TEnumMemberList::Name(const int Index)
{
	for (int i = 0; i < size(); i++) {
		if (at(i).Index == Index) {
			return at(i).ChineseName;
		}
	}
	return at(0).ChineseName;
}                                                           */
